WP2FA\Admin\Helpers\File_Writer C

Total Complexity 105
Dependencies 2
Dependents 1
Total lines 657
Lines of code 353
Logical lines of code 229
Comment lines 172
Methods 17
Properties 0

Methods 17

Method Rating Maintainability Complexity Lines of code
write()
C
35 25 82
read()
B
42 19 51
save_secret_key()
A
42 13 50
update()
A
44 12 44
create_dir()
A
49 10 32
get_line_ending()
S
56 4 17
get_permissions()
S
62 3 11
chmod()
S
65 3 9
get_file_contents()
S
64 3 10
add_file_listing_protection()
S
64 3 10
get_wp_config_file_path()
S
67 2 8
get_placeholder()
S
66 2 8
get_default_permissions()
S
69 2 7
write_wp_config()
S
75 1 4
can_write_to_file()
S
80 1 3
normalize_line_endings()
S
78 1 3
exists()
S
75 1 4